#pragma once
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include <SFML/Graphics/Color.hpp>
#include "WindowManager.h"
#include "LMButton.h"
#include "Character.h"
#include "NPC.h"
#include "TouchInput.h"
#include <Box2D\Box2D.h>

enum State {TITLE, NAVIGATOR, GAME};


class LightMind
{
public:
	LightMind(void);
	~LightMind(void);
	bool run(void);

private:

	WindowManager window;
	NPC* npcs;
	int numNPCs;
	int currentNPC;


	State runTitle(void);
	State runGame(NPC*);
	State runNavigator(void);

	void closeApplication(void);

	void createWindow();

	void createGround(b2World&, float, float);
	void createBox(b2World&, float, float);

	void readInNPCs(b2World* wo, WindowManager* win, Ground* g);

	State runCbar(State);

	void windowOffset(Character* c);

	void addCharacterMovement(Character*);

	Touch::TouchInput touch;


	
};

